package com.ca.project.Server.Modules.User.Converter;

import com.ca.project.Server.Modules.User.Context.UserRegisterContext;
import com.ca.project.Server.Modules.User.Entity.UserId;
import com.ca.project.Server.Modules.User.PO.UserRegisterPo;
import org.mapstruct.Mapper;

/**
 * 用户模块实体转化工具类
 *
 * @PACKAGE_NAME: com.ca.project.Server.Modules.User.Context
 * @NAME: UserContext
 * @USER: ASUS
 * @DATE: 2023/9/4
 * @TIME: 下午 04:46
 **/
@Mapper(componentModel = "spring")
public interface UserConverter {
    /**
     * userRegisterPO转UserRegisterContext
     *
     * @param userRegisterPo
     * @return
     */
    UserRegisterContext userRegisterPO2Register(UserRegisterPo userRegisterPo);

    /**
     * UserRegisterContext转UserId
     *
     * @param userRegisterContext
     * @return
     */
    UserId userRegisterPO2UserId(UserRegisterContext userRegisterContext);
}
